package com.itheima.oop.thisdemo;

/**
 * @author Anomaly
 * @date 2022/12/5 13:20
 */
public class Car {
    String name;
    int price;

    public Car() {
        System.out.println("无参构造器this：" + this);
    }

    public Car(String name, int price) {
        this.name = name;
        this.price = price;
    }

    public void run() {
        System.out.println("方法中的this：" + this);
    }
}
